package ottoFebDuemilaundici;

import positionList.BoundaryViolationException;
import positionList.InvalidPositionException;
import positionList.Position;

public interface BinaryTree<E> extends Tree<E> {

	public boolean hasLeft(Position<E> v) throws InvalidPositionException;

	public boolean hasRight(Position<E> v) throws InvalidPositionException;

	public Position<E> left(Position<E> v) throws InvalidPositionException,
			BoundaryViolationException;

	public Position<E> right(Position<E> v) throws InvalidPositionException,
			BoundaryViolationException;

} // end interface BinaryTree
